/*
 * @Author: 张晨旭
 * @Date: 2021-04-21 19:38:24
 * @LastEditTime: 2021-04-25 19:13:15
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \riboa\daily-1807a-6\项目代码\project2\wipi\src\utils\file.ts
 */


export interface Datum {
  id: string;
  title: string;
  cover: string;
  summary?: string;
  content: string;
  html: string;
  toc: string;
  status: string;
  views: number;
  likes: number;
  isRecommended: boolean;
  needPassword: boolean;
  isCommentable: boolean;
  publishAt: string;
  createAt: string;
  updateAt: string;
  category?: Category;
  tags: Category[];
}

export interface Category {
  id: string;
  label: string;
  value: string;
  createAt: string;
  updateAt: string;
}

// export interface IRootObject {
//   statusCode?: number;
//   msg?: any;
//   success?: boolean;
//   data?: Data;
// }

export interface Data {
  // '2020'?: _2020;
  // '2021'?: _2021;
  [key:string]:_2020
}

// export interface _2021 {
//   April: June[];
//   March: July[];
//   February: June[];
// }

export interface _2020 {
  [key:string]:July
}

export interface March {
  id: string;
  title: string;
  cover?: string;
  summary: string;
  content: string;
  html: string;
  toc: string;
  status: string;
  views: number;
  likes: number;
  isRecommended: boolean;
  needPassword: boolean;
  isCommentable: boolean;
  publishAt: string;
  createAt: string;
  updateAt: string;
}

export interface May {
  id: string;
  title: string;
  cover: string;
  summary?: any;
  content: string;
  html: string;
  toc: string;
  status: string;
  views: number;
  likes: number;
  isRecommended: boolean;
  needPassword: boolean;
  isCommentable: boolean;
  publishAt: string;
  createAt: string;
  updateAt: string;
}

export interface June {
  id: string;
  title: string;
  cover: string;
  summary: string;
  content: string;
  html: string;
  toc: string;
  status: string;
  views: number;
  likes: number;
  isRecommended: boolean;
  needPassword: boolean;
  isCommentable: boolean;
  publishAt: string;
  createAt: string;
  updateAt: string;
}

export interface July {
  // id: string;
  // title: string;
  // cover: string;
  // summary?: string;
  // content: string;
  // html: string;
  // toc: string;
  // status: string;
  // views: number;
  // likes: number;
  // isRecommended: boolean;
  // needPassword: boolean;
  // isCommentable: boolean;
  // publishAt: string;
  // createAt: string;
  // updateAt: string;
  [key:string]:string | number |boolean
}

